package com.example.shiyansan.service.impl;

import com.example.shiyansan.entity.Order;
import com.example.shiyansan.entity.User;
import com.example.shiyansan.mapper.OrderMapper;
import com.example.shiyansan.service.OrderService;
import com.example.shiyansan.vo.OrderVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    private OrderMapper orderMapper;

    @Override
    public List<OrderVo> list(Long userId) {
        List<OrderVo> orderVoList =  orderMapper.listVo(userId);
        return orderVoList;
    }
}
